import java.util.ArrayList;
import java.util.List;

/**
 * @author: AirMan
 * @date: 2025/4/10 16:55
 * @description:
 */
public class Test {
    public static void main(String[] args) {

        List<Integer> list = new ArrayList<>();

        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);

        System.out.println("list = " + list);

        List<Integer> copy = new ArrayList<>(list);
        copy.remove(3);

        System.out.println("copy = " + copy);
    }
}
